import { FC, memo } from 'react';
import { Skeleton } from 'antd';
import styles from './infoCard.module.less';

interface IInfoCardSkeleton {
  rows?: number;
}
const InfoCardSkeleton: FC<IInfoCardSkeleton> = (props) => {
  return (
    <Skeleton
      className={`${styles.minerRightWrap} ${styles.skeleton}`}
      round={true}
      paragraph={{ rows: props.rows || 1 }}
      active={true}
    />
  );
};
export default memo(InfoCardSkeleton);
